{% extends 'layout.html' %}
<!-- 父模板 -->
 
{% block title %}
    index {{title}} 
{%endblock%}
 
{% block head %}
    头部内容！   {{title}}
{% endblock %}

{% block content %}
    <div>
        导航栏
    </div>
    <p>This is just an awesome page.</p>
{% endblock %}